﻿using AnlianCommon.Common.DTO;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace AnlianCommon.API.Commands.SheepFarmes
{
    public class SheepFarmsUpdateCommand:IRequest<Result>
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int FarmId { get; set; }
        /// <summary>
        /// 羊场编号
        /// </summary>
        public string? FarmNumber { get; set; }
        /// <summary>
        /// 羊场全称
        /// </summary>
        public string? FarmFullName { get; set; }
        /// <summary>
        /// 羊场简称
        /// </summary>
        public string? FarmShortName { get; set; }
        /// <summary>
        /// 羊场规模
        /// </summary>
        public string? FarmSize { get; set; }
        /// <summary>
        /// 羊场地址省
        /// </summary>
        public int? ProvinceId { get; set; }
        /// <summary>
        /// 羊场地址市
        /// </summary>
        public int DirectlyId { get; set; }
        /// <summary>
        /// 羊场地址县
        /// </summary>
        public int CountyId { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string? FarmDetailedAddress { get; set; }
        /// <summary>
        /// 建账日期
        /// </summary>
        public DateTime? FarmCreateTime { get; set; }
        /// <summary>
        /// 负责人 (外键)
        /// </summary>
        public string? PersId { get; set; }
        /// <summary>
        /// 管理部门（外键）
        /// </summary>
        public string? DepartmentId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool? FormState { get; set; }
        /// <summary>
        /// 单位Id(外键)
        /// </summary>
        public string? FlatId { get; set; }
    }
}
